import { createApp } from 'vue'
import App from './App.vue'
// pinia
import store from './store'
// router
import router from './router'
// base.css
import '@/assets/css/base.css'
// svg
import svgIcon from "@/components/SvgIcon/index.vue";
import 'virtual:svg-icons-register'
// socket.io
import VueSocketIO from 'vue-socket.io'

// const socket = new VueSocketIO({
//   debug: true,
//   connection: 'http://127.0.0.1:3001'
// })

const app = createApp(App)

// 便于在任意位置获取到 socket 对象
// app.config.globalProperties.$socket = socket;

app.use(store).use(router).component('svg-icon', svgIcon)

app.mount('#app')
